SRCS = object.m thread.m
OUTS = $(SRCS:.m=.x)

CC = @CC@
CFLAGS = @CFLAGS@ -I@abs_top_builddir@
LDFLAGS = @LDFLAGS@ -L@abs_top_builddir@/xp/bas -L@abs_top_builddir@/xpo/bas
LIBS = @LIBS@ -lxpobas -lxpbas -lobjc

all: $(OUTS)

clean:
	rm -rf $(OUTS) *.o

.SUFFIXES: .m .x
.m.x:
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
